package org.javascud.extensions.justtest;

import junit.framework.TestCase;

import java.util.ArrayList;
import java.util.List;

public class ArrayListTester extends TestCase {

    public void testInstance()
    {
        List<String> old = new ArrayList<String>();

        old.add("abc");
        old.add("def");

        List<String> copy = new ArrayList<String>(old);

        copy.set(0, "gogo");

        System.out.println("old:  " + old.get(0));
        System.out.println("copy:  " + copy.get(0));

    }
}
